
DEBUG=false
export CC=gcc
ifeq ($(DEBUG),true)
	export CFLAGS=-W -Wall -ansi -g -mfpmath=sse -march=pentium4 -fsignaling-nans
	export LDFLAGS=
else
	export CFLAGS=-W -Wall -ansi -O3 -mfpmath=sse -march=pentium4 -ffast-math
	export LDFLAGS=
endif
BLACKLIB_DIR=blacklib
LIB=$(BLACKLIB_DIR)/blacklib

all: header $(LIB)
	
header:
	@echo --------------------------------------------------
ifeq ($(DEBUG),true)
	@echo          DEBUG
else
	@echo          RELEASE
endif
	@echo --------------------------------------------------

$(LIB):
	@(cd $(BLACKLIB_DIR) && $(MAKE))
	
.PHONY: clean $(LIB)

clean:
	@(cd $(BLACKLIB_DIR) && $(MAKE) $@)
	